package Thread;

class MyRunnable implements Runnable {
    @Override
    public void run() {
        System.out.println("hello thread");
    }
}

public class Demo2 {
    public static void main(String[] args) {
        Thread t  = new Thread(new MyRunnable());
        t.start();
        System.out.println("hello main");
    }

}
